package org.xhy.sniffer.match;

import net.bytebuddy.description.type.TypeDescription;
import net.bytebuddy.matcher.ElementMatcher;

/**
 * @description: 类匹配器，满足条件才可插桩
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @Author: Xhy
 * @CreateTime: 2024-07-11 19:12
 */
public interface ClassMatch {

    // 返回增强类的匹配规则
    ElementMatcher<? super TypeDescription> buildJunction();

    // 是否满足匹配条件
    boolean isMatch(TypeDescription typeDescription);
}
